
def f(n):
    if n ==1:
        return 1
    ans = 1
    for i in range(1, n//2 + 1):
        ans += f(i)
    return ans
n = int(input())
print(f(n))
